<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1">
	<title>爱租网_个人中心</title>
	<link rel="icon" href="_img_/logo.ico"> 
	{css href="_js_/layui/css/layui.css"}
	{js href="_js_/jquery2.1.4.min.js"}
	{js href="_js_/layer/layer.js"}
	{js href="_js_/layui/layui.js"}
	{js href="_js_/jquery.validate.min.js"}
	{js href="_js_/jquery.form.js"}
	{js href="_js_/messages_zh.js"}
	<style>
		*{margin:0;padding:0;}
    .kong{margin-left:150px;margin-top:10px;}
    .main{margin-left:150px;}
    .main>div{margin:10px 0;}
    .main>div>i{margin-right:5px;}
    .main>div>span{margin-left:15px;font-size:16px;color:#555555;}
    .btn{background:#ff3366;margin:10px 50px;}
    hr{height:5px;}
	</style>
</head>
<body>
	{include file="public/myself_menu"}
  <form method="post" action="javascript:;">
  {notpresent name="data_rs"}
    <div class="kong">
      您还未有租房记录！
    </div>
  {else}
  {volist name="data_rs" id="data_r"}
  <hr>
  <div class="main">
  	<div>
      <i class="layui-icon">&#xe623;</i>区&nbsp;域：<span>{$data_r.name}</span>
    </div>
    <div>
      <i class="layui-icon">&#xe623;</i>小&nbsp;区：<span>{$data_r.vill}</span>
    </div>
    <div>
      <i class="layui-icon">&#xe623;</i>地&nbsp;址：<span>{$data_r.addr}</span>
    </div>
    <div>
      <i class="layui-icon">&#xe623;</i>租&nbsp;赁：<span>{$data_r.qytime|substr=###,0,10}</span>
    </div>
    <div>
      <i class="layui-icon">&#xe623;</i>到&nbsp;期：<span>{$data_r.endtime|substr=###,0,10}</span>
    </div>
    <div>
      <i class="layui-icon">&#xe623;</i>月&nbsp;租：<span>{$data_r.price}元/月</span>
    </div>
    <div>
      <span>据交租金还剩：【 <span style="color:green;" class="paytime">{php}
    echo round((strtotime($data_r['paytime'])-time())/24/3600);
    {/php}</span> 】天</span>
    </div>
  </div>
  {/volist}
  {/notpresent}
  </form>
</body>
</html>
<script type="text/javascript">

	layui.use('element', function(){
		  var element = layui.element;
		});
</script>